package com.briup.pts.mapper;

import com.briup.pts.domain.bean.Hurdles;
import com.briup.pts.domain.vo.HurdlesVO;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface HurdlesMapper {

    Hurdles selectById(String hId);

    /**
     * 根据栏舍id修改栏舍的存储量及其是否已满
     *
     * @param hId   栏舍id
     * @param saved 存储量
     * @param hFull 是否已满的状态
     */
    void changeSaved(@Param("hId") String hId,
                     @Param("saved") int saved,
                     @Param("hFull") String hFull);

    List<HurdlesVO> queryAllWithFh();
}